import request from "@/utils/request";

//获取文章列表
export const getArticleListAPI=params=>request.get('/mp/articles',params)

//删除文章列表
export const deleteArticleAPI= target=>request.delete(`/mp/articles/${target}`)

//获取文章2详情
export const getArticleDetailAPI=target=>request.get(`/mp/articles/${target}`)

//更新文章
export const putArticleAPI=(data,target)=>request.put(`/mp/articles/${target}`,data)